package com.travel;

import com.travel.cms.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//TestApi相当于内容客户端
//作用是方便扫描
@Component
@FeignClient("travel-cms")
@RequestMapping("/cms/content")
public interface TestApi {
    @RequestMapping("findContentByCid")
    public List<Content> findContentByCid(@RequestParam("cid") String cid);
}
